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