Add missing return type in Advantage Air (#101377)
* Add None return type * Change mypi type * Fix mypy issue
This commit is contained in:
parent
20188181f7
commit
00d0767628
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ class AdvantageAirAC(AdvantageAirAcEntity, ClimateEntity):
|
||||||
"""Return the current target temperature."""
|
"""Return the current target temperature."""
|
||||||
# If the system is in MyZone mode, and a zone is set, return that temperature instead.
|
# If the system is in MyZone mode, and a zone is set, return that temperature instead.
|
||||||
if (
|
if (
|
||||||
self._ac["myZone"] > 0
|
self._myzone
|
||||||
and not self._ac.get(ADVANTAGE_AIR_MYAUTO_ENABLED)
|
and not self._ac.get(ADVANTAGE_AIR_MYAUTO_ENABLED)
|
||||||
and not self._ac.get(ADVANTAGE_AIR_MYTEMP_ENABLED)
|
and not self._ac.get(ADVANTAGE_AIR_MYTEMP_ENABLED)
|
||||||
):
|
):
|
||||||
|
|
|
@ -63,7 +63,7 @@ class AdvantageAirAcEntity(AdvantageAirEntity):
|
||||||
return self.coordinator.data["aircons"][self.ac_key]["info"]
|
return self.coordinator.data["aircons"][self.ac_key]["info"]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _myzone(self) -> dict[str, Any]:
|
def _myzone(self) -> dict[str, Any] | None:
|
||||||
return self.coordinator.data["aircons"][self.ac_key]["zones"].get(
|
return self.coordinator.data["aircons"][self.ac_key]["zones"].get(
|
||||||
f"z{self._ac['myZone']:02}"
|
f"z{self._ac['myZone']:02}"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue