Revert "Cache entity properties that are never expected to change in the base class" (#100422)
Revert "Cache entity properties that are never expected to change in the base class (#95315)"
This reverts commit 042776ebb8
.
This commit is contained in:
parent
7723a9b36b
commit
d1afcd773f
35 changed files with 48 additions and 146 deletions
|
@ -98,13 +98,9 @@ class TestHelpersEntity:
|
|||
|
||||
def setup_method(self, method):
|
||||
"""Set up things to be run when tests are started."""
|
||||
self.hass = get_test_home_assistant()
|
||||
self._create_entity()
|
||||
|
||||
def _create_entity(self) -> None:
|
||||
self.entity = entity.Entity()
|
||||
self.entity.entity_id = "test.overwrite_hidden_true"
|
||||
self.entity.hass = self.hass
|
||||
self.hass = self.entity.hass = get_test_home_assistant()
|
||||
self.entity.schedule_update_ha_state()
|
||||
self.hass.block_till_done()
|
||||
|
||||
|
@ -127,7 +123,6 @@ class TestHelpersEntity:
|
|||
with patch(
|
||||
"homeassistant.helpers.entity.Entity.device_class", new="test_class"
|
||||
):
|
||||
self._create_entity()
|
||||
self.entity.schedule_update_ha_state()
|
||||
self.hass.block_till_done()
|
||||
state = self.hass.states.get(self.entity.entity_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue