Compatibility for "device_state_attributes" which was deprecated in 2021.4 has been removed (#67837)
Compatibility for "device_state_attributes" which was deprecated in 2021.4 has been removed (#67837)

* Small performance tweaks to _async_write_ha_state

- Only call self.available once per cycle

- Only call self.device_state_attributes once per update cycle

- Do not check for device_state_attributes if extra_state_attributes is not None

* drop backcompat

* remove prop
w1ll1am23/home-assistant,mezz64/home-assistant,GenericStudent/home-assistant,toddeye/home-assistant,GenericStudent/home-assistant,w1ll1am23/home-assistant,nkgilley/home-assistant,toddeye/home-assistant,nkgilley/home-assistant,mezz64/home-assistant