Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/home-assistant/core.git. Pull mirroring updated .
  1. Mar 23, 2020
  2. Mar 22, 2020
    • Pascal Vizeli's avatar
      Integrate dockerbuild (#33168) · 6e6ad94d
      Pascal Vizeli authored
      * Integrate dockerbuild
      
      * cleanup
      6e6ad94d
    • J. Nick Koston's avatar
      Add gate support to myq, fix bouncy updates (#33124) · e344c2ea
      J. Nick Koston authored
      * Add gate support to myq, fix bouncy updates
      
      Switch to DataUpdateCoordinator, previously
      we would hit the myq api every 60 seconds per device.
      
      If you have access to 20 garage doors on the account it means
      we would have previously tried to update 20 times per minutes.
      
      * switch to async_call_later
      e344c2ea
    • Ivan Dyedov's avatar
      Add fahrenheit support in miflora sensor (#33136) · ab8c5089
      Ivan Dyedov authored
      * add support for fahrenheit in miflora sensor
      
      * fix error introduced when resolving merge conflict
      
      * fix formatting
      ab8c5089
    • Matt Snyder's avatar
      Fix QVR Pro connection error and add port option (#33070) · f0472f2d
      Matt Snyder authored
      * Allow port specification.  Handle connection error gracefully.
      
      * Allow port specification.  Handle connection error gracefully.
      
      * Alias exception. Requested changes.
      f0472f2d
    • Quentame's avatar
      Bump iCloud to 0.9.6.1 (#33161) · 0249daef
      Quentame authored
      0249daef
    • Eugenio Panadero's avatar
      Add pvpc electricity prices integration (#32092) · 8d2e72cd
      Eugenio Panadero authored
      * Add new integration: pvpc_hourly_pricing
      
      to add a sensor with the current hourly price of electricity in Spain.
      Configuration is done by selecting one of the 3 reference tariffs, with
      1, 2, or 3 billing periods.
      
      * Features config flow, entity registry, RestoreEntity, options flow
        to change tariff, manual yaml config as integration or sensor platform
      * Cloud polling sensor with minimal API calls (3/hour at random times)
        and smart retry; fully async
      * Only 1 state change / hour (only when the price changes)
      * At evening, try to download published tomorrow prices, to always store
        prices info for a window of [3, 27] hours in the future.
      * Include useful state attributes to program automations to be run
        at best electric prices.
      * Add spanish and english translations.
      
      * Requires `xmltodict` to parse official xml file with hourly prices
      for each day.
      
      * Update requirements and add to codeowners
      
      * Avoid passing in hass as a parameter to the entity
      
      Instead, create time change listeners in async_added_to_hass and
      call async_generate_entity_id before async_add_entities
      
      * Fix lint issues
      
      * Add tests for config & options flow
      
      * Add tests for manual yaml config
      
      with entity definition as integration and also as a sensor platform
      
      * Fix placement of PLATFORM_SCHEMA and update generated config_flows
      
      * Store prices internally linked to UTC timestamps
      
      - to deal with days with DST changes
      - and work with different local timezones
      
      * Add availability to sensor
      
      to 'expire' the sensor if there is no connection available
       and current hour is not in the stored prices.
      
      Also, turn off logging and retrying if prices can't be downloaded
      repeatedly, by flagging `data_source_available` as False, so there is no
      log-flood mess.
      
      * Add more tests
      
      - to cover behavior in DST changes and complete coverage of sensor logic
      - to cover abort config flow
      
      * fix linter
      
      * Better handling of sensor availability and minor enhancements
      
      - Emmit 1 error if data source is marked as unavailable
        (after some retries), and be silent until cloud access is recovered,
        then emmit 1 warning.
      - Follow standard of camel_case keys in attributes
      
      * Mock aiosession to not access real API, store fixture data
      
      - Store a set of daily xml files to test sensor logic for all situations
      - Mock time and session to run tests with stored API responses
      - Add availability test to simulate a lost + recovery of cloud access,
        checking that logging is reasonable: 1 error to flag the continued
        disconnection + 1 warning in recovery.
      
      * Change API endpoint to retrieve JSON data
      
      and remove xmltodict from reqs.
      
      It seems that this endpoint is more reliable than the XML.
      
      * Adapt tests to new API endpoint
      
      * Translate tariff labels to plain English
      
      and sync the default timeout value for all ways of configuration.
      
      * Relax logging levels to meet silver requirements
      
      - 1 warning when becoming unavailable, another warning when recovered.
      - Warnings for unexpected TimeoutError or ClientError
      - Move the rest to debug level, leaving info for HA internals
      
      Also reduce number of API calls from 3 to 2 calls/hour.
      
      * Fix requirements
      
      * Mod tests to work with timezone Atlantic/Canary
      
      and fix state attributes for timezones != reference, by using 3 price
      prefixes: 'price_last_day_XXh', 'price_next_day_XXh' and 'price_XXh',
      all generated with local time (backend timezone)
      
      * Try to fix CI tests
      
      * Externalize pvpc data and simplify sensor.py
      
      * add new `aiopvpc` to requirements
      * Remove data parsing and price logic from here
      * Replace some constant properties with class variables
      
      * Simplify tests for pvpc_hourly_pricing
      
      * Fix updater for options flow
      
      * Updater always reloads
      * `tariff` value comes 1st from entry.options, 2nd from entry.data
      
      * Fix lint
      
      * Bump aiopvpc
      
      * Remove options flow and platform setup
      
      - Remove PLATFORM_SCHEMA and async_setup_platform
      - Generate config_entry.unique_id with tariff instead of entity_id, in flow step.
      - Remove TariffSelectorConfigFlow
      - Adapt tests to maintain full coverage
      
      * Fix docstring on test
      
      and rename SENSOR_SCHEMA to SINGLE_SENSOR_SCHEMA to avoid confusion
      
      * Remove timeout manual config, fix entry.options usage, simplify unique_id
      
      * Simplify tests
      
      - No need for a test_setup now, as platform setup is removed and integration
        setup is already used in `test_availability`
      - Simplified `_process_time_step`: only one async_fire(EVENT_TIME_CHANGED)/hour
      
      * Fix possible duplicated update
      
      when source is not available.
      
      * Do not access State last_changed for log messages
      
      * Do not update until entity is added to hass
      
      and call to async_update after 1st download or when recovering access, so
      async_write_ha_state is not called twice on those.
      
      * minor changes
      
      * Rename method to select current price and make it a callback
      8d2e72cd
    • Pascal Vizeli's avatar
    • Jason Swails's avatar
      General code cleanups for lutron_caseta component (#33144) · 2a3d6889
      Jason Swails authored
      
      * General code cleanups for lutron_caseta component
      
      * black
      
      * Update homeassistant/components/lutron_caseta/__init__.py
      
      Co-Authored-By: default avatarMartin Hjelmare <marhje52@gmail.com>
      
      Co-authored-by: default avatarMartin Hjelmare <marhje52@gmail.com>
      2a3d6889
    • Raman Gupta's avatar
      Filter out duplicate app names from vizio's source list (#33051) · ca3a22b5
      Raman Gupta authored
      * filter out additional app config names from pyvizios app list
      
      * add test
      
      * change where filtering app list occurs
      
      * fix test
      
      * fix mistake in change
      
      * hopefully final test fix
      
      * fix test scenario that unknowingly broke with test change
      ca3a22b5
    • Pascal Vizeli's avatar
      [skip ci] add rc into build · 912cda4e
      Pascal Vizeli authored
      912cda4e
    • Austin Mroczek's avatar
      Handle generic_thermostat state unavailable (#32852) · c79b3df7
      Austin Mroczek authored
      * fix sensor unavailable error
      
      * fix climate.py
      c79b3df7
    • Christian Ferbar's avatar
      Add Miflora go_unavailable_timeout (#31156) · 8423d18d
      Christian Ferbar authored
      * Clear state on exception
      
      Clear state if querying the device fails. The state is then set to unknown, so it can be tracked if a miflora device isn't responding any more.
      
      * Add available()
      
      Signal valid data via available()
      
      * miflora: add timeout to go unavailable
      
      * code cleanup
      
      * miflora: tox cleanup
      8423d18d
    • Maciej Bieniek's avatar
      Bump gios to 0.0.4 (#33141) · 9d87c1ab
      Maciej Bieniek authored
      9d87c1ab
    • Paulus Schoutsen's avatar
      Fix script logging with name (#33120) · f95c3e26
      Paulus Schoutsen authored
      f95c3e26
    • On Freund's avatar
      Monoprice PR followups (#33133) · 66402b9b
      On Freund authored
      66402b9b
    • jjlawren's avatar
      Bump pyecobee to 0.2.3 (#33130) · 99877c32
      jjlawren authored
      99877c32
    • Pascal Vizeli's avatar
      [skip ci] update wheels builder version · 4510e831
      Pascal Vizeli authored
      4510e831
Loading