mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Remove unused import (#16909)
* Remove unused import * Revert test usage
This commit is contained in:
parent
631ecf578e
commit
726cf9b1c4
@ -16,7 +16,6 @@ def test_config_google_home_entity_id_to_number():
|
||||
handle = mop()
|
||||
|
||||
with patch('homeassistant.util.json.open', mop, create=True):
|
||||
with patch('homeassistant.util.json.os.open', return_value=0):
|
||||
number = conf.entity_id_to_number('light.test')
|
||||
assert number == '2'
|
||||
assert handle.write.call_count == 1
|
||||
@ -47,7 +46,6 @@ def test_config_google_home_entity_id_to_number_altered():
|
||||
handle = mop()
|
||||
|
||||
with patch('homeassistant.util.json.open', mop, create=True):
|
||||
with patch('homeassistant.util.json.os.open', return_value=0):
|
||||
number = conf.entity_id_to_number('light.test')
|
||||
assert number == '22'
|
||||
assert handle.write.call_count == 1
|
||||
@ -78,7 +76,6 @@ def test_config_google_home_entity_id_to_number_empty():
|
||||
handle = mop()
|
||||
|
||||
with patch('homeassistant.util.json.open', mop, create=True):
|
||||
with patch('homeassistant.util.json.os.open', return_value=0):
|
||||
number = conf.entity_id_to_number('light.test')
|
||||
assert number == '1'
|
||||
assert handle.write.call_count == 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user