* refactor - add const.py, change order of propertys, methods
* import client at top of file
* remove debug line
* de-lint
* delint
* add me as CODEOWNER
* remove lint hint
* delint
* Prevent turning on tellduslive lights with 0 brightness
It was possible for the light compontent to get in a state where the last_brightness was set to zero, and when turning on (by calling turn_on) it would call the TellStick with 0 dim level, ergo not turning on the light.
With this, it will fall back on a 75% dim level if the level is set to zero.
* Wrap long log line over two lines
And using a more proper way of formatting the message
* Fallback to 100% instead of 75%
* ptvsd debugger component.
* Add test case
* ptvsd as test dependency
* Fix for 3.5
* Fixed bootstrap test
* Use dict direct lookup.
* Don't need to load dependencies.
* Get the test working.
* 3.5 fix
* Set mock return value
* Put tests back, but skip them
* Change log level
fix check for already created entities
remove hepa and carbon filter
add AQI attribute
initial commit
fix check for already created entities
remove hepa and carbon filter
add AQI attribute
add air quality component tests
fix method call tests
fix line lengths
fix pylint issues
fix docstrings
revert fan related changes
remove whitespace change
fix fan update state test
add for loop for platform initialization
add requested changes to aiq platform
change string concatenation to new style string formatting
update air quality tests
update air quality tests
refactor sensor component changes
fix pylint issues
fix debug string in the air quality component
replace failing tests for older devices
fix line length fan tests
remove dependencies const and move imports
move back imports to methods
remove whitespace from blank line
* Always print invalide configuration data
* Print offending data as yaml
* Revert "Print offending data as yaml"
This reverts commit 01721a21a9ff918ed2c8595151ebfe55eb2f7d36.
* Do not print sensitive data
* Print MQTT topic
* Add line break
* Review comments
* review comments
Fixed AlexaPowerController to report power state for thermostats, to look if state is OFF return OFF, otherwise report ON as thermostats have multiple values for ON
* Don't send volume on volume set
This needs updated lib
* Bump version and avoid getting channels explicitly
* Add myself as codeowner
* Use version 0.0.8 instead which doesn't reuse session
Some TV's doesn't play nice with HTTP/1.1 connection
re-use.
* Add new requirement to requirements_all.txt
The config option 'max_result' was assigned to not existing 'max_result' variable, it should be assigned to 'maxResult'.
The current version causes an error when max_result option is used.
* Added option to use self-signed certificates
I defined a new option for configuration.yaml, 'verify_ssl', which is set to 'True' by default for obvious security reasons. However, in order to work with self-signed certificates, it is now possible to disable the certificate validation.(eg, I use a nextcloud instance with self-signed certificates)
Credit for code in line 57 goes to user 'gen2' on the homeassistant community, who suggested this solution.
https://community.home-assistant.io/t/caldav-configuration/38198/25
I only took it a step further and made it a config option.
* Update calendar.py
* Added the import of CONF_VERIFY_SSL
I hope this passes the test now...
* Update homeassistant/components/caldav/calendar.py
Cool! Didn't know about that possibility, my coding experience is literally two weeks. Thanks for sharing!
Co-Authored-By: anrudolph <49680492+anrudolph@users.noreply.github.com>
* Removed some lines of code
I think, in order for the last commit to work, these lines have to be removed. Correct?
* Trying to get this passing the checks
Trying around to get the simplified code to work
Improve sdcard sensor so it only sends one command to camera per update as opposed to the four it used to send to reduce network traffic and make data consistent. Also better handle returned values of 'unknown'.
* Refactor NETATMO_AUTH to use hass.data
* Minor cleanup
* Rename conf to auth and other suggestions by Martin
* Revert webhook name change
* Rename constant
* Move auth
* Don't use hass.data.get()
* Fix auth string
* Allow host/ipv6 address for broadlink service
This matches switch config and is a regression fix
* Restore padding of packets for broadlink
* Drop unused import
* Fix comment on test
* Add amcrest camera services and deprecate switches
- Implement enabling and disabling motion detection from camera platform.
- Add amcrest specific camera services for controlling audio stream, motion recording, continuous recording and camera color mode, as well as moving camera to PTZ preset and starting and stopping PTZ tour function.
- Add camera attributes to indicate the state of the various camera settings controlled by the new services.
- Deprecate switches in favor of camera services and attributes.
* Rename services and move service handling to __init__.py
Rename services from 'camera.amcrest_xxx' to 'amcrest.xxx'. This allows services to be documented in services.yaml.
Add services.yaml.
Reorganize hass.data[DATA_AMCREST] and do some general cleanup to make various platform modules more consistent.
Move service handling code to __init__.py from camera.py.
* Update per review comments, part 1
- Rebase
- Add permission checking to services
- Change cv.ensure_list_csv to cv.ensure_list
- Add comment for "pointless-statement" in setup
- Change handler_services to handled_services
- Remove check if services have alreaday been registered
- Pass ffmpeg instead of hass to AmcrestCam __init__
- Remove writing motion_detection attr from device_state_attributes
- Change service methods from callbacks to coroutines
* Update per review comments, part 2
- Use dispatcher to signal camera entities to run services.
- Reorganize a bit, including moving a few things to new modules const.py & helpers.py.
* Update per review comments, part 3
Move call data extraction from camera.py to __init__.py.
* Implement EnOcean temperature and humidity sensors.
* Bump EnOcean version to 0.50
* Refactor components for more generic device handling
* Move radio packet data interpretation to specific devices
* Update CODEOWNERS
* Implement code review changes
* Bump Ecovacs dependency (sucks)
Update to new version of sucks, which switches to a custom-built SleekXMPP that turns off certificate validation. This is to fix issues caused by Ecovacs serving invalid certificates.
* Update requirements file
* Fix non syncthru-syncthru supporting printers
* Formatting
* Update requirements_all
* Update syncthru.py
* Fix component to be async (as is the used SyncThru implementation)
* Add async syntax
* Omit loop passing
* Don't await async_add_platform
* Generate new all requirements
* Explain, why exception is caught in setuExplain, why exception is caught in setupp
* Handle failing initial setup correctly
* Formatting
* Formatting
* Fix requested changes
* Update requirements and add nielstron as codeowner
* Run codeowners script
* Make notification about missing syncthru support a warning
* Revert pure formatting
* Fix logging
* Add action.devices.traits.Volume
* Drop media player from brightness trait
* Factor out commands into separate functions
* Drop support for explicit mute
* Expose door cover/binary_sensor as door type
More logical to ask "What doors are open" than "What sensors are open"
* Add test for binary_sensor device_classes
* Cosmetic flake8
* Add test for device class for cover
* reorg HmiP Imports after introduction of manifests
* add type to some functions
* fix usage of dimLevel (HomematicipDimmer,HomematicipNotificationLight)
* align naming to HomematicipMultiSwitch: channel_index -> channel for (HomematicipNotificationLight)
* fix lint
* Fix is_on for dimmers
* fix lint
* Drop unused constant
* Don't default to localhost
A philips tv will never run on localhost
* Use library internal state
* Add play media support for channels
* Control update manually
This allow us to delay update of state when we perform
and action.
* Bump version for support for api v1 again
* Consider missing source and only channels as channels
* Fix some flake8 tasks
* Fix some pylint errors
* Adjust requirements_all file
* Switch to async_add_executor_job
* Assume device turns of off a sucessfull standby call
* Added component named switcher_kis switcher water heater integration.
* Fixed conflicts.
* Updated requirements.
* Added manifest.json file and updated CODEOWNERS.
* Fixed requirements_all.txt.
* Better component tests.
* Removed unnecessary parameter from fixture function.
* Removed tests section from mypy.ini.
* Remove unused ENTITY_ID_FORMAT.
* Stop udp bridge when failed to setup the component.
* Replace DISCOVERY_ constants prefix with DATA_.
* Various change requests.
* Fixed constant name change remifications.
* Added explicit name to fixture.
* Various change requests.
* More various change requests.
* Added EventType for homeassistant.core.Event.
* Switched from event driven data distribution to dispatcher type plus clean-ups.
* Removed name and icon keys from the component configuration.
* Various change requests.
* Various change reqeusts and clean-ups.
* Removed unnecessary DEPENDENCIES constant from swith platform.
* Replaced configuration data guard with assert.
* Removed unused constants.
* Removed confusing type casting for mypy sake.
* Refactor property device_name to name.
* Removed None guard effecting mypy only.
* Removed unnecessary function from switch entity.
* Removed None guard in use by mypy only.
* Removed unused constant.
* Removed unnecessary context manager.
* Stopped messing around with mypy.ini.
* Referring to typing.TYPE_CHECKING for non-runtime imports.
* Added test requierment correctyly.
* Replaced queue.get() with queue.get_nowait() to avoid backing up intervals requests.
* Revert changes in mypy.ini.
* Changed attributes content to device properties instead of entity properties.
* Fixed typo in constant name.
* Remove unnecessary async keyword from callable.
* Waiting for tasks on event loop to end.
* Added callback decorator to callable.
* Fix read gps position accuracy & read device status
* Fix: W291 trailing whitespace & E501 line too long (80 > 79 characters)
* Upgrade pytraccar dependency to 0.7.0
* met snake case