This repository was archived by the owner on Aug 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed
custom_components/authenticated Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
default_config :
2
2
logger :
3
- default : error
3
+ default : info
4
4
logs :
5
5
custom_components.authenticated : debug
6
6
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Custom integration authenticated" ,
3
- "image" : " ludeeus/container: integration" ,
3
+ "image" : " ghcr.io/ ludeeus/devcontainer/ integration:stable " ,
4
4
"context" : " .." ,
5
5
"appPort" : [
6
6
" 9123:8123"
11
11
" github.vscode-pull-request-github" ,
12
12
" ryanluker.vscode-coverage-gutters" ,
13
13
" ms-python.vscode-pylance"
14
- ],
15
- "settings" : {
14
+ ],
15
+ "settings" : {
16
16
"files.eol" : " \n " ,
17
17
"editor.tabSize" : 4 ,
18
18
"terminal.integrated.shell.linux" : " /bin/bash" ,
24
24
"editor.formatOnSave" : true ,
25
25
"editor.formatOnType" : true ,
26
26
"files.trimTrailingWhitespace" : true
27
- }
27
+ }
28
28
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"domain" : " authenticated" ,
3
3
"name" : " Authenticated" ,
4
- "version" : " v0.0.0" ,
4
+ "version" : " 0.0.0" ,
5
+ "iot_class" : " local_polling" ,
5
6
"documentation" : " https://github.com/custom-components/authenticated" ,
6
7
"issue_tracker" : " https://github.com/custom-components/authenticated/issues" ,
7
8
"codeowners" : [
Original file line number Diff line number Diff line change @@ -201,14 +201,15 @@ def update(self):
201
201
accessdata = AuthenticatedData (access , tokens [access ])
202
202
ipaddress = IPData (accessdata , users , self .provider )
203
203
ipaddress .lookup ()
204
- if ipaddress .new_ip :
205
- if self .notify :
206
- ipaddress .notify (self .hass )
207
- ipaddress .new_ip = False
208
204
209
205
if ipaddress .hostname is None :
210
206
ipaddress .hostname = get_hostname (ipaddress .ip_address )
211
207
208
+ if ipaddress .new_ip :
209
+ if self .notify :
210
+ ipaddress .notify (self .hass )
211
+ ipaddress .new_ip = False
212
+
212
213
self .hass .data [PLATFORM_NAME ][access ] = ipaddress
213
214
214
215
for ipaddr in sorted (
You can’t perform that action at this time.
0 commit comments