Add type hints and code cleanup for mikrotik (#74296)

* Add type hints and code cleanup for mikrotik

* update test and increase coverage

* move setup_mikrotik_entry to __init__.py
This commit is contained in:
Rami Mosleh 2022-07-05 10:16:38 +03:00 committed by GitHub
parent 110d9232cd
commit b09aaba421
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 302 additions and 333 deletions

View file

@ -39,7 +39,6 @@ async def test_successful_config_entry(hass):
await hass.config_entries.async_setup(entry.entry_id)
assert entry.state == ConfigEntryState.LOADED
assert hass.data[DOMAIN][entry.entry_id]
async def test_hub_conn_error(hass, mock_api):