mirror of
https://github.com/home-assistant/core.git
synced 2026-05-20 07:20:14 +01:00
f9d89a016e
* Initial revision of fail2ban sensor * Verified working, added tests * Re-factored code so that log reading isn't called for each sensor * Lint fixes * Removed errant reset of last ban, added test to verify bans persist through update * Removed for loop in read_log and replaced with regex per review request * Refactored update to use current ban array for last ban state - also was missing return False in timer for default behavior * Removed CONF_SCAN_INTERVAL from PLATFORM_SCHEMA.extend - renamed DEFAULT_SCAN_INTERVAL to SCAN_INTERVAL * SCAN_INTERVAL changed to timedelta * Force travis rebuild (last build timed out) * Using compiled regex now