Address FireServiceRota late code review (#43741)
* Address review comment from PR #38206 * Address review comment from PR #43638 * Address review comment from PR #43700 * isort fixed * Better code for duty entity update * Removed all pylint relative-beyond-top-level * Removed logger entry from entity state method
This commit is contained in:
parent
6eeb9c0e49
commit
eab6a0508b
6 changed files with 30 additions and 38 deletions
|
@ -63,7 +63,6 @@ class ResponseBinarySensor(CoordinatorEntity, BinarySensorEntity):
|
|||
|
||||
self._state = self._client.on_duty
|
||||
|
||||
_LOGGER.debug("Set state of entity 'Duty Binary Sensor' to '%s'", self._state)
|
||||
return self._state
|
||||
|
||||
@property
|
||||
|
@ -89,5 +88,4 @@ class ResponseBinarySensor(CoordinatorEntity, BinarySensorEntity):
|
|||
if key in data
|
||||
}
|
||||
|
||||
_LOGGER.debug("Set attributes of entity 'Duty Binary Sensor' to '%s'", attr)
|
||||
return attr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue