core/homeassistant/components/demo
Tsvi Mostovicz 80136f3591 Change datetime.now() to dt_util.now() (#26582)
* Change datetime.now() to dt_util.now() in cases where the functionality should stay the same

These changes should not affect the functionality, rather cleanup our codebase.

In general we would like integrations to not to use datetime.now() unless there's a very good
reason for it, rather use our own dt_util.now() which makes the code aware of our current time
zone.

* Use datetime.utcnow() for season sensor to get offset-naive utc time

* Revert "Use datetime.utcnow() for season sensor to get offset-naive utc time"

This reverts commit 5f36463d9c7d52f8e11ffcec7e57dfbc7b21bdd1.

* BOM sensor last_updated should be UTC as well

* Run black

* Remove unused last_partition_update variable
2019-09-19 08:39:09 +02:00
..
__init__.py First pass fixing tests that raise exceptions caught by asyncio.gather (#25860) 2019-08-12 16:42:12 +02:00
air_quality.py Black 2019-07-31 12:25:30 -07:00
alarm_control_panel.py Black 2019-07-31 12:25:30 -07:00
binary_sensor.py Black 2019-07-31 12:25:30 -07:00
calendar.py Black 2019-07-31 12:25:30 -07:00
camera.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
climate.py Black 2019-07-31 12:25:30 -07:00
cover.py Black 2019-07-31 12:25:30 -07:00
demo_0.jpg Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
demo_1.jpg Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
demo_2.jpg Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
demo_3.jpg Consolidate more platforms (#22308) 2019-03-23 20:22:35 -07:00
device_tracker.py Black 2019-07-31 12:25:30 -07:00
fan.py Expose current direction properly on state machine (#26298) 2019-09-01 21:42:57 -07:00
geo_location.py Black 2019-07-31 12:25:30 -07:00
image_processing.py Black 2019-07-31 12:25:30 -07:00
light.py Black 2019-07-31 12:25:30 -07:00
lock.py Black 2019-07-31 12:25:30 -07:00
mailbox.py Black 2019-07-31 12:25:30 -07:00
manifest.json Validate component usage (#23037) 2019-04-13 13:17:01 -07:00
media_player.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
notify.py Black 2019-07-31 12:25:30 -07:00
remote.py Black 2019-07-31 12:25:30 -07:00
sensor.py Black 2019-07-31 12:25:30 -07:00
services.yaml Add stub services.yaml and make validation mandatory (#23213) 2019-04-18 15:13:35 -07:00
switch.py Black 2019-07-31 12:25:30 -07:00
tts.mp3 Migrate tts (#22403) 2019-03-26 07:34:16 -07:00
tts.py Black 2019-07-31 12:25:30 -07:00
vacuum.py Use literal string interpolation in core (f-strings) (#26166) 2019-08-23 09:53:33 -07:00
water_heater.py Black 2019-07-31 12:25:30 -07:00
weather.py Change datetime.now() to dt_util.now() (#26582) 2019-09-19 08:39:09 +02:00