mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Update mypy-dev 1.16.0a8 (#143166)
This commit is contained in:
parent
1307cd4b10
commit
c7290908cc
@ -104,7 +104,7 @@ class LazyState(State):
|
|||||||
return self._last_updated_ts
|
return self._last_updated_ts
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def last_changed_timestamp(self) -> float: # type: ignore[override]
|
def last_changed_timestamp(self) -> float:
|
||||||
"""Last changed timestamp."""
|
"""Last changed timestamp."""
|
||||||
ts = self._last_changed_ts or self._last_updated_ts
|
ts = self._last_changed_ts or self._last_updated_ts
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
@ -112,7 +112,7 @@ class LazyState(State):
|
|||||||
return ts
|
return ts
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def last_reported_timestamp(self) -> float: # type: ignore[override]
|
def last_reported_timestamp(self) -> float:
|
||||||
"""Last reported timestamp."""
|
"""Last reported timestamp."""
|
||||||
ts = self._last_reported_ts or self._last_updated_ts
|
ts = self._last_reported_ts or self._last_updated_ts
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
|
@ -1072,7 +1072,7 @@ class TemplateStateBase(State):
|
|||||||
raise KeyError
|
raise KeyError
|
||||||
|
|
||||||
@under_cached_property
|
@under_cached_property
|
||||||
def entity_id(self) -> str: # type: ignore[override]
|
def entity_id(self) -> str:
|
||||||
"""Wrap State.entity_id.
|
"""Wrap State.entity_id.
|
||||||
|
|
||||||
Intentionally does not collect state
|
Intentionally does not collect state
|
||||||
@ -1128,7 +1128,7 @@ class TemplateStateBase(State):
|
|||||||
return self._state.object_id
|
return self._state.object_id
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self) -> str: # type: ignore[override]
|
def name(self) -> str:
|
||||||
"""Wrap State.name."""
|
"""Wrap State.name."""
|
||||||
self._collect_state()
|
self._collect_state()
|
||||||
return self._state.name
|
return self._state.name
|
||||||
|
@ -12,7 +12,7 @@ coverage==7.6.12
|
|||||||
freezegun==1.5.1
|
freezegun==1.5.1
|
||||||
license-expression==30.4.1
|
license-expression==30.4.1
|
||||||
mock-open==1.4.0
|
mock-open==1.4.0
|
||||||
mypy-dev==1.16.0a7
|
mypy-dev==1.16.0a8
|
||||||
pre-commit==4.0.0
|
pre-commit==4.0.0
|
||||||
pydantic==2.11.3
|
pydantic==2.11.3
|
||||||
pylint==3.3.6
|
pylint==3.3.6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user