diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f3ad52..9a3fec6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 74b2092..3de5d3b 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/__main__.py b/__main__.py index 77b6c76..d7449d9 100644 --- a/__main__.py +++ b/__main__.py @@ -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") diff --git a/custom_components/edgeos/manifest.json b/custom_components/edgeos/manifest.json index bbe27f0..94e4bd5 100644 --- a/custom_components/edgeos/manifest.json +++ b/custom_components/edgeos/manifest.json @@ -6,6 +6,6 @@ "codeowners": ["@elad-bar"], "requirements": ["aiohttp"], "config_flow": true, - "version": "1.1.2", + "version": "1.1.3", "iot_class": "local_polling" } diff --git a/info.md b/info.md index 74b2092..3de5d3b 100644 --- a/info.md +++ b/info.md @@ -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 |