-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remaster configuration schema (#193)
- Loading branch information
Showing
15 changed files
with
98 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ logger: | |
|
||
gismeteo: | ||
sweet_home: | ||
sensors: {} | ||
|
||
dacha: | ||
name: Our Country House | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,28 @@ | ||
"""Constants for tests.""" | ||
|
||
from custom_components.gismeteo.const import CONF_PLATFORM_FORMAT | ||
from homeassistant.const import ( | ||
CONF_LATITUDE, | ||
CONF_LONGITUDE, | ||
CONF_NAME, | ||
CONF_SENSORS, | ||
Platform, | ||
) | ||
from custom_components.gismeteo.const import CONF_ADD_SENSORS | ||
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME | ||
|
||
FAKE_NAME = "Home" | ||
FAKE_UNIQUE_ID = "test_id" | ||
FAKE_LATITUDE = 55.55 | ||
FAKE_LONGITUDE = 122.12 | ||
TEST_NAME = "Home" | ||
TEST_UNIQUE_ID = "test_id" | ||
TEST_LATITUDE = 55.55 | ||
TEST_LONGITUDE = 122.12 | ||
|
||
FAKE_CONFIG = { | ||
CONF_NAME: FAKE_NAME, | ||
CONF_LATITUDE: FAKE_LATITUDE, | ||
CONF_LONGITUDE: FAKE_LONGITUDE, | ||
TEST_CONFIG = { | ||
CONF_NAME: TEST_NAME, | ||
CONF_LATITUDE: TEST_LATITUDE, | ||
CONF_LONGITUDE: TEST_LONGITUDE, | ||
} | ||
|
||
FAKE_CONFIG_OPTIONS = { | ||
CONF_PLATFORM_FORMAT.format(Platform.SENSOR): True, | ||
TEST_CONFIG_OPTIONS = { | ||
CONF_ADD_SENSORS: True, | ||
} | ||
|
||
FAKE_CONFIG_YAML = { | ||
TEST_CONFIG_YAML = { | ||
"home": { | ||
CONF_NAME: FAKE_NAME, | ||
CONF_LATITUDE: FAKE_LATITUDE, | ||
CONF_LONGITUDE: FAKE_LONGITUDE, | ||
CONF_SENSORS: {}, | ||
CONF_NAME: TEST_NAME, | ||
CONF_LATITUDE: TEST_LATITUDE, | ||
CONF_LONGITUDE: TEST_LONGITUDE, | ||
CONF_ADD_SENSORS: True, | ||
}, | ||
} |
Oops, something went wrong.