Refactoring

###Fix
* Refactoring done based on home assistant style guidelines and suggestions submitted on the core pull request version of this integration
* Added new sensors to strings json and disabled by default
This commit is contained in:
RyanClark123
2023-08-21 15:06:28 +01:00
parent 575b213ddd
commit 2cd46c18f8
9 changed files with 214 additions and 253 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
scan_interval = entry.options.get(CONF_SCAN_INTERVAL)
coordinators = {
serial: OwletCoordinator(hass, sock, scan_interval)
serial: OwletCoordinator(hass, sock, scan_interval, entry)
for (serial, sock) in socks.items()
}