-
- Downloads
GitLab-CI sensor integration addition. (#16561)
* Updates to GitLab Sensor * Updates to GitLab_CI sensor. * Added GitLab_CI sensor. * Updated interval to a more appropriate 300 seconds. * Added GitLab_CI.py to ommitted files. * Initial refactor to use python-gitlab PyPI module. * Fixes to dict parsing. * Updated required packages for GitLab_CI requirements. * Updates and refactoring to more closely align with Home-Assistant standards. * Moved import to init, removed unreachable requests exception. * Removed references to STATE_UNKNOWN and replaced with None * Removed extra whitespace * Changed PLATFORM_SCHEMA and renamed add_devices. Changed PLATFORM_SCHEMA to use SCAN_INTERVAL and add_devices to add_entities * Added configurable name, changed logger and removed cruft. * Removed _status to use _state instead, as both held same value. * Fixed ATTR_BUILD_BRANCH, removed more extraneous cruft. * Changed required config keys to dict[key] format. * Removed extraneous CONF_SCAN_INTERVAL as it's already defined.
homeassistant/components/sensor/gitlab_ci.py
0 → 100644
Please register or sign in to comment