Remove unnecessary string literal concatenations (#30360)

This commit is contained in:
Ville Skyttä
2020-01-02 21:17:10 +02:00
committed by GitHub
parent cac750066a
commit e6388e186c
183 changed files with 362 additions and 393 deletions

View File

@@ -14,12 +14,11 @@ class TestBinarySensor(unittest.TestCase):
sensor = binary_sensor.BinarySensorDevice()
assert STATE_OFF == sensor.state
with mock.patch(
"homeassistant.components.binary_sensor." "BinarySensorDevice.is_on",
"homeassistant.components.binary_sensor.BinarySensorDevice.is_on",
new=False,
):
assert STATE_OFF == binary_sensor.BinarySensorDevice().state
with mock.patch(
"homeassistant.components.binary_sensor." "BinarySensorDevice.is_on",
new=True,
"homeassistant.components.binary_sensor.BinarySensorDevice.is_on", new=True,
):
assert STATE_ON == binary_sensor.BinarySensorDevice().state