hass-core/tests
elmurato 699d6ad658
Add Minecraft Server Integration (#30992)
* Add Minecraft Server integration

* Add unit test for config flow

* Fixed some review findings and increased unit test coverage

* Fixed docstrings of new test cases

* Removed unnecessary debug log messages

* Added unique IDs and device infos and removed duplicate name validation

* Attempt to fix unit test on CI

* Return state OFF instead of UNAVAILABLE in case connection to server drops

* Added property decorator to server properties, even less debug messages, improved sensor dispatcher connection and other review findings fixed

* Moved special property handling to sensors, fixed name confusion in sensor entity, switch to HA const for scan_interval, simplified building players list string

* Improved periodic update, speeded up unit tests

* Added type hints, added callback decorator to entity update callback, added const.py to unit test exclusions

* Changed state sensor to binary sensor, removed empty unit test file, added constants for icons and units

* Let HA handle unknown state, check for None in description and players list sensor

* Removed periods at end of log messages, removed constant for default host

* Updated requirements_test_pre_commit.txt, fixed codespell findings

* Use localhost as default host

* Removed passing hass to entities, moved log message from init, moved host lower to vol, use proper patch library, patch library instead of own code

* Replaced server properties with global instance attributes, removed config option scan_interval, switch back to async_track_time_interval

* Removed description and players list sensors, added players list as state attributes to online players sensor, raise OSError instead of deprecated IOError, other minor review findings fixed

* Use MAC address for unique_id in case of an IP address as host, added getmac to manifest.json, added invalid_ip to strings.json, added new test cases for changes in config_flow, replace all IOError's with OSError, other review findings fixed

* Removed double assignment

* Call get_mac_address async safe

* Handle unavailable and unknown states to reach silver quality scale, added quality scale to manifest.json
2020-02-08 09:28:35 +01:00
..
auth Fix typos found by codespell (#31243) 2020-01-31 08:33:00 -08:00
components Add Minecraft Server Integration (#30992) 2020-02-08 09:28:35 +01:00
fixtures Update pynws to v0.10.1 (#30662) 2020-01-15 12:01:47 -08:00
hassfest Make Hassfest stricter pt 2 (#30068) 2019-12-19 14:00:22 +01:00
helpers Update the update coordinator API to make it easier to use (#31471) 2020-02-06 09:29:29 -08:00
mock Black 2019-07-31 12:25:30 -07:00
resources
scripts Add Safe Mode (#30723) 2020-01-14 13:03:02 -08:00
test_util Sort imports according to PEP8 for 'tests' (#29791) 2019-12-09 16:52:24 +01:00
testing_config Add brightness_step to light.turn_on (#31452) 2020-02-04 16:13:29 -08:00
util Enable some more bandit checks (#30857) 2020-01-20 18:44:55 +02:00
__init__.py
bandit.yaml Enable some more bandit checks (#30857) 2020-01-20 18:44:55 +02:00
common.py Restore unit_of_measurement from entity registry (#30780) 2020-01-15 08:09:05 -08:00
conftest.py Be consistent with Home Assistant and Hass.io spelling (#30500) 2020-01-05 14:09:17 +02:00
test_bootstrap.py Add Safe Mode (#30723) 2020-01-14 13:03:02 -08:00
test_config.py Fix typos found by codespell (#31243) 2020-01-31 08:33:00 -08:00
test_config_entries.py Add update_entry dict to unique ID flow abort helper (#31090) 2020-01-23 11:21:19 -08:00
test_core.py Enable some more bandit checks (#30857) 2020-01-20 18:44:55 +02:00
test_data_entry_flow.py Rework FlowManager to use inheritance (#30133) 2020-01-03 11:52:01 +01:00
test_loader.py Various string cleanups (#30435) 2020-01-03 14:47:06 +01:00
test_main.py Sort imports according to PEP8 for 'tests' (#29791) 2019-12-09 16:52:24 +01:00
test_requirements.py Sort imports for requirements.py and its test using isort (#29836) 2019-12-11 12:12:06 +01:00
test_setup.py Various string cleanups (#30435) 2020-01-03 14:47:06 +01:00