hass-core/homeassistant
Adam Cooper 72ce9ec321 Add platform and sensors for Vultr VPS (#9928)
* Initial commit of Vultr components

Have a working Vultr hub and binary sensor which pulls down the
following attributes of your VPS:
 - Date created
 - Subscription id (server id)
 - Cost per month (in US$)
 - Operating System installed
 - IPv4 address
 - label (human readable name)
 - region
 - number of vcpus
 - which storage package chosen
 - IPV6 address (if applicable)
 - RAM amount

Working next on sensor and then testing / coverage.

* Added Vultr sensor for pending charges and current bandwidth. Refactored binary_sensor and hub too

* Corrected is_on bases

* Added basic tests for Vultr binary & platform

* Updated require files

* Changing test fixture to highlight different cases

* Written basic test for sensor.vultr

* Resolved linting errors and broken test

* Increase test coverage and corrected docs

* Resolved hound issues

* Revert back negative binary test

* Another hound resolve

* Refactoring and adding is switch, moving over to vultr branch

* Made Vultr components more resiliant to invalid configs

* Added negetive test for vultr binary sensor

* Added better testing of vultr sensor

* Resolved vultr platform test affecting subsequent vultr tests

* Moving VULTR components to single use design

* Added in sensor name config

* Added missing sensors var

* Resolved init data setting of sensors, added in name conf to switch

* Made the Vultr component more resiliant to startup failure with better alerting

* Various Vultr component changes

- Refactored sensor, binary_sensor, and switch to reference one subscription
- Renamed CURRENT_BANDWIDTH_GB monitored condition to CURRENT_BANDWIDTH_USED
- Improved test coverage

* Resolved local tox linting issue

* Added more testing for Vultr switch

* Improved test coverage for Vultr components

* Made PR comment changes to vultr binary sensor

* Made PR comment changes to Vultr sensor

* resolved PR comments for Vultr Switch

* Resolved vultr sensor name and improved tests

* Improved Vultr switch testing (default name formatting)

* Removed vultr hub failure checking
2017-11-05 14:10:14 +01:00
..
components Add platform and sensors for Vultr VPS (#9928) 2017-11-05 14:10:14 +01:00
helpers Clean up core (#10305) 2017-11-03 14:19:36 +01:00
scripts Upgrade credstash to 1.14.0 (#10310) 2017-11-03 13:51:17 +01:00
util Extracted json saving and loading (#10216) 2017-11-01 09:08:28 +01:00
__init__.py Fix PEP257 issues 2016-03-08 00:06:04 +01:00
__main__.py Added log-file command line flag (#9422) 2017-09-13 21:22:42 -07:00
bootstrap.py Fix spelling error (#10009) 2017-10-21 21:56:19 +02:00
config.py Fix formatting invalid config text (#10319) 2017-11-03 18:12:45 +01:00
const.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
core.py Clean up core (#10305) 2017-11-03 14:19:36 +01:00
exceptions.py Fix recorder crash for long state string - enforce at core level (#9696) 2017-10-25 09:05:30 -07:00
loader.py RFC: Use bind_hass for helpers (#9745) 2017-10-08 08:17:54 -07:00
monkey_patch.py Make monkey patch work in Python 3.6 (#7848) 2017-06-01 23:23:39 -07:00
package_constraints.txt Update requests requirement (#9876) 2017-10-19 19:24:49 -07:00
remote.py Use constants for HTTP headers (#10313) 2017-11-04 12:04:05 -07:00
setup.py Move constants to setup.py (#10312) 2017-11-03 07:43:30 -07:00