Skip to content

Commit

Permalink
Fixed #32 - monitored_devices appear as disconnected & documentation
Browse files Browse the repository at this point in the history
- Fixed monitored_devices appear as disconnected [\#32](#32) by [@shlomki](https://github.com/shlomki)
- Added documentation of how to set manually log level as debug
  • Loading branch information
elad-bar committed Aug 22, 2021
1 parent 33c9175 commit 503ee70
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v1.1.3

- Fixed monitored_devices appear as disconnected [\#32](https://github.com/elad-bar/ha-edgeos/pull/32) by [@shlomki](https://github.com/shlomki)
- Added documentation of how to set manually log level as debug

## v1.1.2

- Fixed hassfest error (missing iot_class)
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ In case `Default` option is chosen, flow will skip calling the service, after ch
###### Save debug file
Will store debug data from the component to HA CONFIG path named `edgeos_data.log`

#### Debugging
To set the log level of the component to DEBUG, please set it from the options of the component if installed, otherwise, set it within configuration YAML of HA:
```yaml
logger:
default: warning
logs:
custom_components.edgeos: debug
```
## Components
#### Default
Name | Type | State | Attributes |
Expand Down
3 changes: 1 addition & 2 deletions __main__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import asyncio
import logging

from test_consts import *

from custom_components.edgeos.managers.configuration_manager import ConfigManager
from custom_components.edgeos.managers.data_manager import EdgeOSData
from custom_components.edgeos.managers.password_manager import PasswordManager
from custom_components.edgeos.managers.version_check import VersionCheck
from custom_components.edgeos.models.config_data import ConfigData
from homeassistant.core import HomeAssistant
from test_consts import *

logging.basicConfig(filename="log.txt", filemode="a", level="DEBUG")

Expand Down
2 changes: 1 addition & 1 deletion custom_components/edgeos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"codeowners": ["@elad-bar"],
"requirements": ["aiohttp"],
"config_flow": true,
"version": "1.1.2",
"version": "1.1.3",
"iot_class": "local_polling"
}
9 changes: 9 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ In case `Default` option is chosen, flow will skip calling the service, after ch
###### Save debug file
Will store debug data from the component to HA CONFIG path named `edgeos_data.log`

#### Debugging
To set the log level of the component to DEBUG, please set it from the options of the component if installed, otherwise, set it within configuration YAML of HA:
```yaml
logger:
default: warning
logs:
custom_components.edgeos: debug
```
## Components
#### Default
Name | Type | State | Attributes |
Expand Down

0 comments on commit 503ee70

Please sign in to comment.