Remove unused import (#16909)

* Remove unused import

* Revert test usage
This commit is contained in:
Anders Melchiorsen 2018-09-27 00:21:29 +02:00 committed by GitHub
parent 631ecf578e
commit 726cf9b1c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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