Enable strict typing for easyenergy (#107299)
This commit is contained in:
parent
6ff990e2c2
commit
28c0c2d2ad
3 changed files with 13 additions and 1 deletions
|
@ -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.*
|
||||
|
|
|
@ -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(
|
||||
|
|
10
mypy.ini
10
mypy.ini
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue