Remove unnecessary string literal concatenations (#30360)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user