6b2a2740f173462173f6e711120a56838c1cf6c9,homeassistant/components/knx/climate.py,KNXClimate,async_update,#KNXClimate#,47

Before Change


    async def async_update(self):
        Request a state update from KNX bus.
        await self._device.sync()
        await self._device.mode.sync()

    @property
    def temperature_unit(self):

After Change


    async def async_update(self) -> None:
        Request a state update from KNX bus.
        await self._device.sync()
        if self._device.mode is not None:
            await self._device.mode.sync()

    @property
    def temperature_unit(self) -> str:
        Return the unit of measurement.
        return self._unit_of_measurement
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: home-assistant/home-assistant
Commit Name: 6b2a2740f173462173f6e711120a56838c1cf6c9
Time: 2021-03-25
Author: farmio@alphart.net
File Name: homeassistant/components/knx/climate.py
Class Name: KNXClimate
Method Name: async_update


Project Name: Shmuma/ptan
Commit Name: 8ee8a61be26ffd1ac8c4ef4d07a23591ab6b99ae
Time: 2017-05-07
Author: max.lapan@gmail.com
File Name: samples/dqn_tweaks_doom.py
Class Name:
Method Name:


Project Name: tensorflow/minigo
Commit Name: 596e74f6c15359ab8d70525c3b51441628a80a49
Time: 2019-01-14
Author: andrew.m.jackson@gmail.com
File Name: ratings/ratings.py
Class Name:
Method Name: main