Enable strict typing for easyenergy (#107299)

This commit is contained in:
Marc Mueller 2024-01-06 10:31:55 +01:00 committed by GitHub
parent 6ff990e2c2
commit 28c0c2d2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View File

@ -145,6 +145,7 @@ homeassistant.components.downloader.*
homeassistant.components.dsmr.*
homeassistant.components.dunehd.*
homeassistant.components.duotecno.*
homeassistant.components.easyenergy.*
homeassistant.components.efergy.*
homeassistant.components.electrasmart.*
homeassistant.components.electric_kiwi.*

View File

@ -111,7 +111,8 @@ def __get_coordinator(
},
)
return hass.data[DOMAIN][entry_id]
coordinator: EasyEnergyDataUpdateCoordinator = hass.data[DOMAIN][entry_id]
return coordinator
async def __get_prices(

View File

@ -1211,6 +1211,16 @@ disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[mypy-homeassistant.components.easyenergy.*]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
warn_return_any = true
warn_unreachable = true
[mypy-homeassistant.components.efergy.*]
check_untyped_defs = true
disallow_incomplete_defs = true