Files
core/homeassistant/components/sensor
Adam Cooper c2525782aa Refactored WHOIS sensor to resolve assumed key errors (#10662)
* Refactored WHOIS sensor to resolve assumed key errors

Altered it to now set an attribute key and value only if the attribute
is present in the WHOIS response. This prevents assumed keys (registrar)
from raising a KeyError on WHOIS lookups that don't contain registrar
information (onet.pl, wp.pl, for example).

* Removed non-used self._data

* WHOIS sensor now creates a new local attributes dict and overrides

* Corrected typos, refactored error cases to clear state adn attributes

* Resolved double return and refactored error logging
2017-12-01 11:36:15 -05:00
..
2017-05-02 09:18:47 -07:00
2017-05-02 22:47:20 +02:00
2017-05-02 09:18:47 -07:00
2017-09-19 10:04:11 +02:00
2017-05-12 20:30:07 -07:00
2017-06-29 11:03:52 +02:00
2017-10-14 14:45:32 -04:00
2017-10-25 15:13:11 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-10-04 10:20:08 +02:00
2017-07-31 20:41:45 -07:00
2017-05-02 09:18:47 -07:00
2017-09-23 17:15:46 +02:00
2017-10-23 09:20:45 +02:00
2017-05-02 09:18:47 -07:00
2017-05-15 14:25:46 +02:00
2017-10-23 13:12:14 +02:00
2017-11-23 13:10:23 +01:00
2017-06-29 11:03:52 +02:00
2017-10-02 17:17:08 +02:00
2017-10-14 14:45:32 -04:00
2017-06-05 08:39:31 -07:00
2017-10-29 11:54:11 +01:00
2017-11-07 18:19:54 +01:00
2017-05-02 09:18:47 -07:00
2017-11-02 10:32:06 +01:00
2017-09-25 22:34:48 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-11-15 18:17:17 -05:00
2017-09-12 19:50:28 -07:00
2017-05-02 09:18:47 -07:00
2017-10-07 00:22:40 +02:00
2017-05-02 09:18:47 -07:00
2017-03-04 15:10:36 -08:00
2017-09-29 12:05:02 +02:00
2017-07-16 21:39:38 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-06-13 07:22:46 +02:00
2017-11-21 15:35:23 +01:00
2017-08-29 16:18:36 +02:00
2017-11-27 21:25:00 +01:00
2017-08-30 22:23:28 +02:00
2017-10-08 20:14:39 +02:00
2017-05-02 09:18:47 -07:00
2017-05-02 09:18:47 -07:00
2017-11-13 09:24:07 -08:00
2017-05-02 09:18:47 -07:00
2017-05-04 07:46:43 +02:00
2017-10-09 14:38:00 +03:00
2017-11-08 11:18:35 +01:00
2017-11-19 19:41:30 -08:00
2017-10-24 18:36:08 +02:00
2017-11-22 09:37:20 +00:00
2017-09-17 13:40:58 +02:00
2017-06-18 21:32:39 -07:00
2017-09-27 10:44:32 -07:00
2017-10-23 14:38:16 -04:00
2017-09-24 08:28:11 +02:00
2017-06-26 22:30:25 +02:00
2017-08-12 08:52:56 +02:00
2017-07-07 07:55:58 -07:00
2017-05-13 14:09:00 -04:00
2017-05-02 22:47:20 +02:00
2017-10-15 21:41:16 -07:00
2017-05-02 22:47:20 +02:00
2017-05-02 22:47:20 +02:00