Remove unnecessary string literal concatenations (#30360)

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

No files matched your search

+2 -3
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