Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/home-assistant/core.git. Pull mirroring updated .
  1. Apr 02, 2020
  2. Mar 31, 2020
  3. Mar 27, 2020
    • Adam Michaleski's avatar
      Add integration for Schluter (#31088) · c629e7dc
      Adam Michaleski authored
      
      * Add integration for Schluter
      New integration for Schluter DITRA-HEAT thermostats. Interacts with Schluter API via py-schluter to implement climate platform.
      
      * Fix for manifest issue on build
      Removed unnecessary configurator logic
      
      * Flake8 & ISort issues fixed
      
      * Code review modifications for Schluter integration
      - Removed unnecessary strings.json file
      - Removed unnecessary DEFAULT_SCAN_INTERVAL from __init__.py
      - Removed persistent notification for authentication error in __init__.py
      - Removed string casts from log statements in __init__.py
      - Removed unnecessary logging of entity creations in climate.py
      - Removed unnecessary lookup for hvac_mode in climate.py
      
      * Work started on Update Coordinator
      
      * Further Coordinator work
      
      * Update to DataUpdateCoordinator complete
      
      * Flake8 fix
      
      * Removal of unnecessary SchluterPlatformData
      Coordinator also now using SCAN_INTERVAL
      
      * Disable polling, use coordinator listeners
      
      * Isort on climate.py
      
      * Code review modifications
      - Hass data stored under domain
      - Since platform only likely to be climate, removed array, load explicitly
      - Remove unnecessary fan mode implementation
      
      * Switch to HVAC action for showing current heating status
      
      * Isort fix
      
      * HVAC Mode return list, set_hvac_mode function added
      
      * __init__.py modifications from code review
      
      * Climate.py code review modifications
      - Device info property removed
      - Write state function on set temp failure
      - Add "available" property
      - Delegate sync function in coordinator update to the executor
      
      * Serial number as unique identifier
      - Now using serial number & thermostat dictionary to protect against scenarios where a device is removed and enumerable index is no longer accurate
      - Removed async_write_ha_state() from set temp exception, not needed
      - Removed unnecessary SCAN_INTERVAL definition
      
      * Linting
      
      * Update homeassistant/components/schluter/climate.py
      
      Co-Authored-By: default avatarPaulus Schoutsen <paulus@home-assistant.io>
      
      * Update homeassistant/components/schluter/climate.py
      
      Co-Authored-By: default avatarPaulus Schoutsen <paulus@home-assistant.io>
      
      * Changed timeout from config, load platform discover to None
      
      * Proposed change for discover info issue
      
      Co-authored-by: default avatarPaulus Schoutsen <paulus@home-assistant.io>
      c629e7dc
  4. Mar 24, 2020
    • MeIchthys's avatar
      Add Nextcloud Integration (#30871) · 3c59791b
      MeIchthys authored
      
      * some sensors working in homeassistant
      
      * bring up to date
      
      * add codeowner
      
      * update requirements
      
      * overhaul data imports from api & sensor discovery
      
      * remove print statement
      
      * delete requirements_test_all
      
      * add requrements_test_all.txt
      
      * Update homeassistant/components/nextcloud/sensor.py
      
      Co-Authored-By: default avatarspringstan <46536646+springstan@users.noreply.github.com>
      
      * Update homeassistant/components/nextcloud/sensor.py
      
      Co-Authored-By: default avatarspringstan <46536646+springstan@users.noreply.github.com>
      
      * describe recursive function
      
      * clarify that dict is returned
      
      * remove requirements from requirements_test_all
      
      * improve and simplify sensor naming
      
      * add basic tests
      
      * restore pre-commit config
      
      * update requirements_test_all
      
      * remove codespell requirement
      
      * update pre-commit-config
      
      * add-back codespell
      
      * rename class variables as suggested by @springstan
      
      * add dev branch to no-commit-to-branch git hook
      
      Because my fork had the same 'dev' branch i wasn't able to push. Going forward I should probably name my branches differently.
      
      * move config logic to __init__.py
      
      * restore .pre-commit-config.yaml
      
      * remove tests
      
      * remove nextcloud test requirement
      
      * remove debugging code
      
      * implement binary sensors
      
      * restore .pre-commit-config.yaml
      
      * bump dependency version
      
      * bump requirements files
      
      * bump nextcloud reqirement to latest
      
      * update possible exceptions, use fstrings
      
      * add list of sensors & fix inconsistency in get_data_points
      
      * use domain for config
      
      * fix guard clause
      
      * repair pre-commit-config
      
      * Remove period from logging
      
      * include url in unique_id
      
      * update requirements_all.txt
      
      Co-authored-by: default avatarspringstan <46536646+springstan@users.noreply.github.com>
      3c59791b
  5. Mar 23, 2020
  6. Mar 21, 2020
  7. Mar 20, 2020
  8. Mar 18, 2020
    • Maciej Bieniek's avatar
      Migrate Brother to use DataUpdateCoordinator (#32800) · c1ceab09
      Maciej Bieniek authored
      * Use DataCoordinator to update Brother data
      
      * Simplify error text
      
      * Improve tests
      
      * Rename DEFAULT_SCAN_INTERVAL to SCAN_INTERVAL
      
      * Add entity_registry_enabled_default property
      
      * Add quality_scale to manifest.json file
      
      * Remove misleading coordinator.data.data
      c1ceab09
  9. Mar 16, 2020
    • Chris Talkington's avatar
      Add config flow to roku (#31988) · cf8dfdae
      Chris Talkington authored
      * create a dedicated const.py
      
      * add DEFAULT_PORT to const.py
      
      * work on config flow conversion.
      
      * remove discovery.
      
      * work on config flow and add tests. other cleanup.
      
      * work on config flow and add tests. other cleanup.
      
      * add quality scale to manifest.
      
      * work on config flow and add tests. other cleanup.
      
      * review tweaks.
      
      * Update manifest.json
      
      * catch more specific errors
      
      * catch more errors.
      
      * impprt specific exceptions
      
      * import specific exceptions
      
      * Update __init__.py
      
      * Update config_flow.py
      
      * Update media_player.py
      
      * Update remote.py
      
      * Update media_player.py
      
      * Update remote.py
      
      * Update media_player.py
      
      * Update remote.py
      
      * Update config_flow.py
      
      * Update config_flow.py
      
      * Update media_player.py
      
      * Update __init__.py
      
      * Update __init__.py
      
      * Update config_flow.py
      
      * Update test_config_flow.py
      
      * Update config_flow.py
      
      * Update __init__.py
      
      * Update test_config_flow.py
      
      * Update remote.py
      
      * Update test_init.py
      
      * Update test_init.py
      
      * Update media_player.py
      
      * Update media_player.py
      
      * Update media_player.py
      cf8dfdae
    • shred86's avatar
      Add Abode tests (#32562) · d36259f0
      shred86 authored
      * Add tests for several devices
      
      * Update coveragerc
      
      * Code review changes and minor clean up
      
      * More code review changes
      
      * Update manifest and minor test updates
      
      * Add test for locks and covers
      
      * Add tests for switch on and off
      
      * Add more complete test for alarms
      
      * Fix for camera test
      
      * Patch abodepy.mode for tests
      
      * Add test for unknown alarm state and minor cleanup
      
      * Update to make tests more robust
      
      * More specific tests
      
      * Update quality scale to silver
      
      * Remove integration quality scale
      d36259f0
  10. Mar 11, 2020
    • Quentame's avatar
      Refactor Freebox : add config flow + temperature sensor + signal dispatch (#30334) · 19be4a5d
      Quentame authored
      * Add config flow to Freebox
      
      * Add manufacturer in device_tracker info
      
      * Add device_info to sensor + switch
      
      * Add device_info: connections
      
      * Add config_flow test + update .coveragerc
      
      * Typing
      
      * Add device_type icon
      
      * Remove one error log
      
      * Fix pylint
      
      * Add myself as CODEOWNER
      
      * Handle sync in one place
      
      * Separate the Freebox[Router/Device/Sensor] from __init__.py
      
      * Add link step to config flow
      
      * Make temperature sensors auto-discovered
      
      * Use device activity instead of reachablility for device_tracker
      
      * Store token file in .storage
      
      Depending on host if list of Freebox integration on the future without breaking change
      
      * Remove IP sensors + add Freebox router as a device with attrs : IPs, conection type, uptime, version & serial
      
      * Add sensor should_poll=False
      
      * Test typing
      
      * Handle devices with no name
      
      * None is the default for data
      
      * Fix comment
      
      * Use config_entry.unique_id
      
      * Add async_unload_entry with asyncio
      
      * Add and use bunch of data size and rate related constants (#31781)
      
      * Review
      
      * Remove useless "already_configured" error string
      
      * Review : merge 2 device & 2 sensor classes
      
      * Entities from platforms
      
      * Fix unload + add device after setup + clean loggers
      
      * async_add_entities True
      
      * Review
      
      * Use pathlib + refactor get_api
      
      * device_tracker set + tests with CoroutineMock()
      
      * Removing active & reachable from tracker attrs
      
      * Review
      
      * Fix pipeline
      
      * typing
      
      * typing
      
      * typing
      
      * Raise ConfigEntryNotReady when HttpRequestError at setup
      
      * Review
      
      * Multiple Freebox s
      
      * Review: store sensors in router
      
      * Freebox: a sensor story
      19be4a5d
    • Chris Talkington's avatar
      Add config flow to directv (#32162) · bb666b9a
      Chris Talkington authored
      
      * initial work on config flow.
      
      * more work on config flow.
      
      * work on config flow and add tests. other cleanup.
      
      * cleanup tests.
      
      * fix test.
      
      * isort
      
      * Update .coveragerc
      
      * Update test_init.py
      
      * Update test_init.py
      
      * Update test_init.py
      
      * Update test_config_flow.py
      
      * Update test_config_flow.py
      
      * Update test_config_flow.py
      
      * correct upnp serial format.
      
      * improve config flow coverage.
      
      * review tweaks.
      
      * further review tweaks
      
      * simplify dtv data gathering job
      
      * lint
      
      * black
      
      * Update test_init.py
      
      * Update test_init.py
      
      * Simplify exception handling.
      
      * Simplify exception handling.
      
      * Update media_player.py
      
      * Update test_media_player.py
      
      * Update test_media_player.py
      
      * Update test_media_player.py
      
      * Update test_media_player.py
      
      * Update test_media_player.py
      
      * fix failing test.
      
      * restore change made during debug.
      
      * isort.
      
      Co-authored-by: default avatarPaulus Schoutsen <paulus@home-assistant.io>
      bb666b9a
    • jjlawren's avatar
      Rewrite and add Plex tests (#32633) · 44c77433
      jjlawren authored
      * Rewrite and add Plex tests
      
      * Remove unnecessary mocks
      
      * Explicitly import constants for readability
      44c77433
    • cgtobi's avatar
      Remove Netatmo binary sensor (#32673) · 50c32d57
      cgtobi authored
      * Clean up for access scope review
      
      * Remove deleted from coverage omit list
      50c32d57
    • J. Nick Koston's avatar
      Throw ConfigEntryNotReady when august servers are offline or u… (#32635) · 048f9e7d
      J. Nick Koston authored
      * Throw ConfigEntryNotReady when august servers are offline
      
      * august has tests now and its nearing 100%
      
      * Adjust per review
      
      * define in init
      048f9e7d
  11. Mar 10, 2020
  12. Mar 09, 2020
  13. Mar 05, 2020
    • Paulus Schoutsen's avatar
      Add edl21 component for SML-based smart meters (#27962) · 2316f7ac
      Paulus Schoutsen authored
      
      * Add edl21 component for SML-based smart meters
      
      * edl21: Remove unused variable
      
      * [edl21] Add 1 minute throttle to the sensor
      
      * Update homeassistant/components/edl21/manifest.json
      
      Fix documentation URL
      
      Co-Authored-By: default avatarPaulus Schoutsen <paulus@home-assistant.io>
      
      * edl21: Move imports to top
      
      * edl21: Remove special case for STATE_UNKNOWN, which replicated default behavior
      
      * edl21: Implement blacklist for and warn about unhandled OBIS values
      
      * edl21: Make blacklist global
      
      * edl21: Add filter to issues URL
      
      Co-Authored-By: default avatarPaulus Schoutsen <paulus@home-assistant.io>
      
      * edl21: Rename device to entity
      
      * edl21: Don't schedule async_add_entities
      
      * edl21: Use dispatcher, implement own throttling mechanism
      
      * edl21: Simplify keeping track of known obis
      
      * edl21: Use whitelist for state attributes
      
      * edl21: Remove dispatcher on shutdown
      
      * edl21: Convert state attributes to snakecase
      
      * edl21: Annotate handle_telegram with @callback
      
      * edl21: Call async_write_ha_state instead of schedule_update_ha_state
      
      Co-authored-by: default avatarDavid Straub <straub@protonmail.com>
      Co-authored-by: default avatarPaulus Schoutsen <paulus@home-assistant.io>
      2316f7ac
  14. Mar 03, 2020
    • Matt Snyder's avatar
      Add QVR Pro integration (#31173) · ee7ce478
      Matt Snyder authored
      
      * Initial working commit
      
      * Create const file.  Load camera from component.
      
      * Handle failed authentication.  Bump library version.
      
      * Remove line break
      
      * Camera attributes and recording services
      
      * Add services, manifest, constant update, and exclude_channels.  Prefix channel name.  Update service argument.
      
      * Update codeowners
      
      * Update coveragerc
      
      * Remove codeowners line
      
      * Update codeowners again from python3 -m script.hassfest
      
      * Update homeassistant/components/qvrpro/__init__.py
      
      Co-Authored-By: default avatarspringstan <46536646+springstan@users.noreply.github.com>
      
      * Requested changes
      
      * Fix typo
      
      * Update to use exception. Bump library version.
      
      * Support stream component
      
      * Update module header
      
      * Missing property wrapper
      
      * Partial requested changes
      
      * Update coveragerc and codeowners
      
      * Move constants to const file.  Add SHORT_NAME
      
      * Add conf variable
      
      * Use camera domain
      
      * More requested changes
      
      * Requested changes
      
      * Requested changes
      
      * Update prefix
      
      * Handle error condition when camera is not configured to support live streaming
      
      * Move method to camera setup.  Disable stream component support.
      
      * Move auth string to library to prevent private member access
      
      Co-authored-by: default avatarspringstan <46536646+springstan@users.noreply.github.com>
      ee7ce478
  15. Mar 02, 2020
    • jjlawren's avatar
      Refactor Certificate Expiry Sensor (#32066) · df3f7687
      jjlawren authored
      * Cert Expiry refactor
      
      * Unused parameter
      
      * Reduce delay
      
      * Deprecate 'name' config
      
      * Use config entry unique_id
      
      * Fix logic bugs found with tests
      
      * Rewrite tests to use config flow core interfaces, validate created sensors
      
      * Update strings
      
      * Minor consistency fix
      
      * Review fixes, complete test coverage
      
      * Move error handling to helper
      
      * Subclass exceptions
      
      * Better tests
      
      * Use first object reference
      
      * Fix docstring
      df3f7687
  16. Mar 01, 2020
    • guillempages's avatar
      Add Tankerkoenig integration (#28661) · f53c94ed
      guillempages authored
      * Initial version
      
      Parse configuration, but return a fixed value
      
      * Add basic functionality
      
      Request real data from the server
      Currently the prices are not getting updated, but the petrol station
      data is real
      
      * Update values regularly
      
      The tankerkoenig values get updated regularly with real data.
      
      * Move base functionality for the sensor to a base class
      
      And move that to an own file, so that it can be inherited
      
      * Reduce calls to tankerkoenig api
      
      Use a master/slave concept for sensors; one master gets the data and
      updates it into the slaves.
      
      * Update requirements files
      
      * Update all gas stations at once
      
      * Remove tests directory
      
      Currently there are no tests for the integration; will be added in
      a future commit.
      
      * Fix slaves not being updated
      
      Let the base class regularly poll, so that slaves are also updated
      
      * Refactor entity creation
      
      Create an auxiliary method to add a station to the entity list,
      in preparation to allowing extra stations.
      
      * Add possibility to manually add stations
      
      Add a new configuration option "stations" to manually add extra stations
      
      * Fix style issues
      
      Make the code more pythonic
      
      * Remove redundant code
      
      Implement suggestions from the code review
      
      * Change to platform component
      
      Remove the master/slave concept, in favor of a platform with dummy sensors.
      The platform takes care of contacting the server and fetching updates
      atomically, and updating the data on the sensors.
      
      * Rename ATTR_STATE
      
      Rename the attribute to "IS_OPEN", to avoid confusion with the sensor state.
      
      * Minor updates
      
      Combine two consecutive error logs into a single one.
      Update the sensor's icon
      
      * Separate address into different fields
      
      * Style updates
      
      Use "[]" syntax instead of ".get()" for required parameters
      Use warning log level for not available fuel types
      
      * Implement review comments
      
      Fix style issues
      Improve error messages
      Remove redundant options
      
      * Refactor using DataUpdateCoordinator
      
      Use the new DataUpdateCoordinator to fetch the global data from
      the API, instead of implementing an own method.
      Also fix comments from the PR
      
      * Implement PR comments
      
      Implement suggestions to improve code readability and keep the Home Assistant style.
      Also separate fetching data to an async thread
      f53c94ed
  17. Feb 29, 2020
    • Aaron Bach's avatar
      Add config entry for AirVisual (#32072) · e9a7b66d
      Aaron Bach authored
      * Add config entry for AirVisual
      
      * Update coverage
      
      * Catch invalid API key from config schema
      
      * Rename geographies to stations
      
      * Revert "Rename geographies to stations"
      
      This reverts commit 5477f89c24cb3f58965351985b1021fc5fc794a5.
      
      * Update strings
      
      * Update CONNECTION_CLASS
      
      * Remove options (subsequent PR)
      
      * Handle import step separately
      
      * Code review comments and simplification
      
      * Move default geography logic to config flow
      
      * Register domain in config flow init
      
      * Add tests
      
      * Update strings
      
      * Bump requirements
      
      * Update homeassistant/components/airvisual/config_flow.py
      
      * Update homeassistant/components/airvisual/config_flow.py
      
      * Make schemas stricter
      
      * Linting
      
      * Linting
      
      * Code review comments
      
      * Put config flow unique ID logic into a method
      
      * Fix tests
      
      * Streamline
      
      * Linting
      
      * show_on_map in options with default value
      
      * Code review comments
      
      * Default options
      
      * Update tests
      
      * Test update
      
      * Move config entry into data object (in prep for options flow)
      
      * Empty commit to re-trigger build
      e9a7b66d
  18. Feb 28, 2020
  19. Feb 25, 2020
  20. Feb 24, 2020
    • Pierre's avatar
      Add platform Ezviz (#30378) · a1a835cf
      Pierre authored
      * hookid : isort fix
      
      * New platform: Ezviz
      
      * updated CODEOWNERS for ezviz
      
      * proper test requirements
      
      * resolved conflict
      
      * regenerated requirements
      
      * removed stale comments, only one call to add_entities, removed unnecessary attributes
      
      * setup is sync, not async. Removed stale comments
      
      * Compatible with pyezviz 0.1.4
      
      * pyezviz 0.1.4 is now requiredf
      
      * Added PTZ + switch management
      
      * added services.yaml
      
      * proper requirement
      
      * PTZ working in async mode
      
      * Now updates the entity
      
      * Compatible with pyezviz 0.1.5.1
      
      * Fixed switch ir service registering
      
      * now requires pyezviz 0.1.5.2
      
      * now requires pyezviz 0.1.5.2
      
      * Revert "regenerated requirements"
      
      This reverts commit 848b317cf9f9df296c3a6ab9e128ec330c4fd365.
      
      * Rollbacked to a simpler version
      
      * snake_case names everywhere, logging sanatizing, voluptuous proper check
      
      * pyezviz 0.1.5, reworked the PR so that it's intelligible
      
      * no need for services.yaml for now
      
      * proper voluptuous validation
      
      * Removed stale code, use proper conf variable, describe attributes
      
      * regenerated requirements
      
      * stale
      
      * removed status from attributes, since we use it for available we don't need it here then.
      
      * Fixed log message
      a1a835cf
  21. Feb 21, 2020
    • Alexei Chetroi's avatar
      ZHA device channel refactoring (#31971) · 3385893b
      Alexei Chetroi authored
      * Add ZHA core typing helper.
      * Add aux_channels to ZHA rule matching.
      * Add match rule claim_channels() method.
      * Expose underlying zigpy device.
      * Not sure we need this one.
      * Move "base" channels.
      * Framework for channel discovery.
      * Make DEVICE_CLASS and REMOTE_DEVICE_TYPE default dicts.
      * Remove attribute reporting configuration registry.
      * Refactor channels.
      - Refactor zha events
      - Use compound IDs and unique_ids
      - Refactor signal dispatching on attribute updates
      
      * Use unique id compatible with entities unique ids.
      * Refactor ZHA Entity registry.
      Let match rule to check for the match.
      
      * Refactor discovery to use new channels.
      * Cleanup ZDO channel.
      Remove unused zha store call.
      
      * Handle channel configuration and initialization.
      * Refactor ZHA Device to use new channels.
      * Refactor ZHA Gateway to use new discovery framework.
      Use hass.data for entity info intermediate store.
      
      * Don't keep entities in hass.data.
      * ZHA gateway new discovery framework.
      * Refactor ZHA platform loading.
      * Don't update ZHA entities, when restoring from zigpy.
      * ZHA entity discover tests.
      * Add AnalogInput sensor.
      * Remove 0xFC02 based entity from Keen smart vents.
      * Clean up IAS channels.
      * Refactor entity restoration.
      * Fix lumi.router entities name.
      * Rename EndpointsChannel to ChannelPool.
      * Make Channels.pools a list.
      * Fix cover test.
      * Fix FakeDevice class.
      * Fix device actions.
      * Fix channels typing.
      * Revert update_before_add=False
      * Refactor channel class matching.
      * Use a helper function for adding entities.
      * Make Pylint happy.
      * Rebase cleanup.
      * Update coverage for ZHA device type overrides.
      * Use cluster_id for single output cluster registry.
      * Remove ZHA typing from coverage.
      * Fix tests.
      * Address comments.
      * Address comments.
      3385893b
    • Patrick Kishino's avatar
      Add asuswrt interface and dnsmasq location configuration (#29834) · f32411e3
      Patrick Kishino authored
      * Added interface and dnsmasq location configuration
      
      * Updated aioasuswrt requirement to latest 1.2.1 release
      
      * Updated to working aioasus library and fixed correct conf formatting
      f32411e3
  22. Feb 18, 2020
  23. Feb 17, 2020
  24. Feb 12, 2020
    • Emanuel Winblad's avatar
      Add initial version of Vilfo Router integration (#31177) · 3e05fc1c
      Emanuel Winblad authored
      * Initial implementation of Vilfo router integration.
      
      This commit is a combination of several commits, with commit messages in bullet form below.
      
      * Added additional files to Vilfo integration.
      * Added generated files.
      * Fixed alphabetic order in generated config_flows.
      * Continued implementation of config flow for Vilfo integration.
      * Continued work on config_flow for Vilfo.
      * Updated requirements in manifest for Vilfo Router integration.
      * Some strings added to Vilfo Router integration.
      * Vilfo Router integration updated with sensor support.
      * Code style cleanup.
      * Additional cleanup of config flow.
      * Added additional UI strings for Vilfo Router
      * Updated tests of config flow and fixed formatting
      * Updated requirement upon vilfo-api-client.
      * Sensor refactoring including support for icons
      * Code style changes for Vilfo Router integration
      * Code cleanup
      * Fixed linting issues in Vilfo Router integration
      * Fixed import order in test for Vilfo integration.
      
      * Updates to Vilfo Router integration based on feedback
      
      Based on the feedback received, updates have been made to the Vilfo Router integration.
      
      A couple of the points mentioned have not been addressed yet, since the appropriate action has not yet been determined. These are:
      
      * https://github.com/home-assistant/home-assistant/pull/31177#discussion_r371124477
      * https://github.com/home-assistant/home-assistant/pull/31177#discussion_r371202896
      
      This commit consists of:
      
          * Removed unused folder/submodule
          * Fixes to __init__
          * Fixes to config_flow
          * Fixes to const
          * Refactored sensors and applied fixes
          * Fix issue with wrong exception type in config flow
          * Updated tests for Vilfo integration config_flow
          * Updated dependency upon vilfo-api-client to improve testability
          * Import order fixes in test
          * Use constants instead of strings in tests
      
      * Updated the VilfoRouterData class to only use the hostname as unique_id when it is the default one (admin.vilfo.com).
      
      * Refactored based on feedback during review.
      
      * Changes to constant names,
      * Blocking IO separated to executor job,
      * Data for uptime sensor changed from being computed to being a timestamp,
      * Started refactoring uptime sensor in terms of naming and unit.
      * Updated constants for boot time (previously uptime) sensor.
      * Refactored test of Vilfo config flow to avoid patching code under test.
      * UI naming fixes and better exception handling.
      
      * Removed unused exception class.
      
      * Various changes to Vilfo Router integration.
      
      * Removed unit of measurement for boot time sensor,
      * Added support for a sensor not having a unit,
      * Updated the config_flow to handle when the integration is already configured,
      * Updated tests to avoid mocking the code under test and also to cover the aforementioned changes.
      
      * Exception handling in Vilfo Router config flow refactored to be more readable.
      
      * Refactored constant usage, fixed sensor availability and fix API client library doing I/O in async context.
      
      * Updated signature with hass first
      
      * Update call to constructor with changed order of arguments
      3e05fc1c
  25. Feb 10, 2020
    • Vilppu Vuorinen's avatar
      Add MELCloud integration (#30712) · b78d156f
      Vilppu Vuorinen authored
      
      * Add MELCloud integration
      
      * Provides a climate and sensor platforms. Multiple platforms on one go
      is not the best option, but it does not make sense to remove them and
      commit them later either.
      
      * Email and access token are stored to the ConfigEntry. The token can be
      updated by adding the integration again with the same email address. The
      config flow is aborted and the update is performed on the background.
      
      * Run isort
      
      * Fix pylint errors
      
      * Run black
      
      * Increase coverage
      
      * Update pymelcloud dependency
      
      * Add HVAC_MODE_OFF emulation
      
      * Remove print
      
      * Update pymelcloud to enable device type filtering
      
      * Collapse except blocks and chain ClientNotReadys
      
      * Add preliminary documentation URL
      
      * Use list comp for creating model info
      
      Filters out empty model names form units.
      
      * f-string galore
      
      Dropped 'HVAC' from AtaDevice name template.
      
      * Delegate fan mode mapping to pymelcloud
      
      * Fix type annotation
      
      * Access AtaDevice through self._device
      
      * Prefer list comprehension
      
      * Update pymelcloud to leverage device type grouping
      
      The updated backend lib returns devices in a dict grouped by the device
      type. The devices do not necessarily need to be in a single list and
      this way isinstance is not required to extract devices by type.
      
      * Remove DOMAIN presence check
      
      This does not seem to make much sense after all.
      
      * Fix async_setup_entry
      
      Entry setup used half-baked naming from few experimentations back.
      The naming conventiens were unified to match the platforms.
      
      A redundant noneness check was also removed after evaluating the
      possible return values from the backend lib.
      
      * Simplify empty model name check
      
      * Improve config validation
      
      * Use config_validation strings.
      
      * Add CONF_EMAIL to config schema. The value is not strictly required
      when configuring through configuration.yaml, but having it there makes
      things more consistent.
      
      * Use dict[key] to access required properties.
      
      * Add DOMAIN in config check back to async_setup. This is required if an
      integration is configured throught config_flow.
      
      * Remove unused manifest properties
      
      * Remove redundant ClimateDevice property override
      
      * Add __init__.py to coverage exclusion
      
      * Use CONF_USERNAME instead of CONF_EMAIL
      
      * Use asyncio.gather instead of asyncio.wait
      
      * Misc fixes
      
      * any -> Any
      
      * Better names for dict iterations
      
      * Proper dict access with mandatory/known keys
      
      * Remove unused 'name' argument
      
      * Remove unnecessary platform info from unique_ids
      
      * Remove redundant methods from climate platform
      
      * Remove redundant default value from dict get
      
      * Update ConfigFlow sub-classing
      
      * Define sensors in a dict instead of a list
      
      * Use _abort_if_unique_id_configured to update token
      
      * Fix them tests
      
      * Remove current state guards
      
      * Fix that gather call
      
      * Implement sensor definitions without str manipulation
      
      * Use relative intra-package imports
      
      * Update homeassistant/components/melcloud/config_flow.py
      
      Co-Authored-By: default avatarMartin Hjelmare <marhje52@gmail.com>
      
      Co-authored-by: default avatarMartin Hjelmare <marhje52@gmail.com>
      b78d156f
  26. Feb 08, 2020
    • elmurato's avatar
      Add Minecraft Server Integration (#30992) · 699d6ad6
      elmurato authored
      * Add Minecraft Server integration
      
      * Add unit test for config flow
      
      * Fixed some review findings and increased unit test coverage
      
      * Fixed docstrings of new test cases
      
      * Removed unnecessary debug log messages
      
      * Added unique IDs and device infos and removed duplicate name validation
      
      * Attempt to fix unit test on CI
      
      * Return state OFF instead of UNAVAILABLE in case connection to server drops
      
      * Added property decorator to server properties, even less debug messages, improved sensor dispatcher connection and other review findings fixed
      
      * Moved special property handling to sensors, fixed name confusion in sensor entity, switch to HA const for scan_interval, simplified building players list string
      
      * Improved periodic update, speeded up unit tests
      
      * Added type hints, added callback decorator to entity update callback, added const.py to unit test exclusions
      
      * Changed state sensor to binary sensor, removed empty unit test file, added constants for icons and units
      
      * Let HA handle unknown state, check for None in description and players list sensor
      
      * Removed periods at end of log messages, removed constant for default host
      
      * Updated requirements_test_pre_commit.txt, fixed codespell findings
      
      * Use localhost as default host
      
      * Removed passing hass to entities, moved log message from init, moved host lower to vol, use proper patch library, patch library instead of own code
      
      * Replaced server properties with global instance attributes, removed config option scan_interval, switch back to async_track_time_interval
      
      * Removed description and players list sensors, added players list as state attributes to online players sensor, raise OSError instead of deprecated IOError, other minor review findings fixed
      
      * Use MAC address for unique_id in case of an IP address as host, added getmac to manifest.json, added invalid_ip to strings.json, added new test cases for changes in config_flow, replace all IOError's with OSError, other review findings fixed
      
      * Removed double assignment
      
      * Call get_mac_address async safe
      
      * Handle unavailable and unknown states to reach silver quality scale, added quality scale to manifest.json
      699d6ad6
  27. Feb 06, 2020
  28. Feb 04, 2020
    • Quentame's avatar
      Add config flow to Meteo-France (#29927) · 201ea255
      Quentame authored
      * Add config flow to Meteo-France
      
      * Review 1
      
      * Use config_entry.unique_id
      
      * Fix config_flow _show_setup_form + init
      
      * Remove empty *_setup_platform()
      
      * Avoid HomeAssistantError: Entity id already exists: sensor.[city_name]_[sensor_type]. Platform meteo_france does not generate unique IDs
      
      - when multiple district in one city
      
      * Review + abort when API error
      
      * Fix I/O
      
      * Remove monitored_conditions
      
      * Add async_unload_entry
      
      * Review 3
      
      * Fix pipe
      
      * alert_watcher is already None
      
      * Review 4
      
      * Better fix for "Entity id already exists"
      
      * Whoops, fix tests
      
      * Fix string
      201ea255
  29. Feb 03, 2020
    • Rami Mosleh's avatar
      Rework Mikrotik device scanning following Unifi (#27484) · 04cb2e9f
      Rami Mosleh authored
      * rework device scanning, add tests
      
      * update requirements and coverage
      
      * fix description comments
      
      * update tests, fix disabled entity updates
      
      * rework device scanning, add tests
      
      * update requirements and coverage
      
      * fix description comments
      
      * update tests, fix disabled entity updates
      
      * update librouteros to 3.0.0
      
      * fix sorting
      
      * fix sorting 2
      
      * revert to 2.3.0 as 3.0.0 requires code update
      
      * fix requirements
      
      * apply fixes
      
      * fix tests
      
      * update hub.py and fix tests
      
      * fix test_hub_setup_failed
      
      * rebased on dev and update librouteros to 3.0.0
      
      * fixed test_config_flow
      
      * fixed tests
      
      * fix test_config_flow
      04cb2e9f
  30. Feb 02, 2020
  31. Feb 01, 2020
    • Bernhard B's avatar
      Support multiple attachments in signal messenger integration (#31141) · 294c6a71
      Bernhard B authored
      * added support for multiple attachments to signal_messenger integration
      
      * updated pysignalclirestapi version in requirements_all.txt
      
      * reworked multiple attachments feature in signal_messenger integration
      
      * stay backwards compatible by both allowing the "attachment" and
        the "attachments" attribute.
      
      * reworked multiple attachments feature in signal_messenger integration
      
      * stay backwards compatible by both allowing the "attachment" and
        the "attachments" attribute.
      
      * small change in signal_messenger integration
      
      * added deprecation warning for 'attachment' attribute
      
      * small changes in signal_messenger integration
      
      * use 'warning' instead of 'warn' when logging the warning message
      
      * re-generated requirements_test_pre_commit.txt
      
      * added tests for signal_messenger integration
      
      * regenerated requirements_test_all.txt for signal_messenger integration
      
      * added more signal_messenger tests
      
      * remove signal_messenger integration files from .coveragerc
      294c6a71
  32. Jan 31, 2020
  33. Jan 30, 2020
    • Raman Gupta's avatar
      Update media_player and add tests to qualify vizio integration for platinum quality score (#31187) · 73ea34e4
      Raman Gupta authored
      * add media player test and update media player logic to qualify vizio for platinum quality score
      
      * add SCAN_INTERVAL and log message once when device goes from available to unavailable and vice versa
      
      * move test constants into one file to avoid defining dupes in each test file
      
      * move constant to shrink diff
      
      * move pytest fixtures to conftest.py
      
      * remove commented out code
      
      * move unload test to test_init
      
      * updates to tests and logging based on review
      
      * bypass notification service
      
      * add fixture so component setup makes it through config flow
      
      * split failure tests into two
      
      * fix setup and entity check for test_init and setup failures in test_media_player
      
      * make domain references consistent across test files
      
      * remove logging steps that were introduced to help debug
      
      * move common patches out to new fixture and use config entry everywhere appropriate
      
      * fix docstring
      
      * add test for update options to increase code coverage
      
      * add one more assert
      
      * refactor test_media_player to move boiler plate logic out of each test into _test_init function
      
      * final refactor of test_media_player to move repeat logic into separate function
      
      * update docstrings
      
      * refactor setup failure tests to move shared logic into private function
      
      * fix last new functions code to use variable instead of static config variable
      
      * remove trailing comma
      
      * test that volume_step gets properly passed to Vizio volume function
      
      * fix comment language
      
      * assert with unittest.mock.call in _test_service and use config_entries.async_setup instead of config_entries.async_add
      
      * replace config_entries.async_add with config_entries.async_setup everywhere
      
      * simplify if statement for argument assertion
      
      * fix logging based on style guide
      
      * remove accidentally committed changes
      
      * update scan interval to something more reasonable and add tests for availability changes
      
      * change filter function to list comprehension, simplify log messages, remove default entity id from logs since it is user configurable, fix docstrings
      73ea34e4
Loading