91 lines
3.1 KiB
Plaintext
91 lines
3.1 KiB
Plaintext
# serializer version: 1
|
|
# name: test_sensor
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'entity_picture': 'https://i.ytimg.com/vi/wysukDrMdqU/maxresdefault.jpg',
|
|
'friendly_name': 'Google for Developers Latest upload',
|
|
'published_at': datetime.datetime(2023, 5, 11, 0, 20, 46, tzinfo=TzInfo(UTC)),
|
|
'video_id': 'wysukDrMdqU',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.google_for_developers_latest_upload',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': "What's new in Google Home in less than 1 minute",
|
|
})
|
|
# ---
|
|
# name: test_sensor.1
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'entity_picture': 'https://yt3.ggpht.com/fca_HuJ99xUxflWdex0XViC3NfctBFreIl8y4i9z411asnGTWY-Ql3MeH_ybA4kNaOjY7kyA=s800-c-k-c0x00ffffff-no-rj',
|
|
'friendly_name': 'Google for Developers Subscribers',
|
|
'unit_of_measurement': 'subscribers',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.google_for_developers_subscribers',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '2290000',
|
|
})
|
|
# ---
|
|
# name: test_sensor.2
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'entity_picture': 'https://yt3.ggpht.com/fca_HuJ99xUxflWdex0XViC3NfctBFreIl8y4i9z411asnGTWY-Ql3MeH_ybA4kNaOjY7kyA=s800-c-k-c0x00ffffff-no-rj',
|
|
'friendly_name': 'Google for Developers Views',
|
|
'unit_of_measurement': 'views',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.google_for_developers_views',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '214141263',
|
|
})
|
|
# ---
|
|
# name: test_sensor_without_uploaded_video
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'friendly_name': 'Google for Developers Latest upload',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.google_for_developers_latest_upload',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': 'unavailable',
|
|
})
|
|
# ---
|
|
# name: test_sensor_without_uploaded_video.1
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'entity_picture': 'https://yt3.ggpht.com/fca_HuJ99xUxflWdex0XViC3NfctBFreIl8y4i9z411asnGTWY-Ql3MeH_ybA4kNaOjY7kyA=s800-c-k-c0x00ffffff-no-rj',
|
|
'friendly_name': 'Google for Developers Subscribers',
|
|
'unit_of_measurement': 'subscribers',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.google_for_developers_subscribers',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '2290000',
|
|
})
|
|
# ---
|
|
# name: test_sensor_without_uploaded_video.2
|
|
StateSnapshot({
|
|
'attributes': ReadOnlyDict({
|
|
'entity_picture': 'https://yt3.ggpht.com/fca_HuJ99xUxflWdex0XViC3NfctBFreIl8y4i9z411asnGTWY-Ql3MeH_ybA4kNaOjY7kyA=s800-c-k-c0x00ffffff-no-rj',
|
|
'friendly_name': 'Google for Developers Views',
|
|
'unit_of_measurement': 'views',
|
|
}),
|
|
'context': <ANY>,
|
|
'entity_id': 'sensor.google_for_developers_views',
|
|
'last_changed': <ANY>,
|
|
'last_reported': <ANY>,
|
|
'last_updated': <ANY>,
|
|
'state': '214141263',
|
|
})
|
|
# ---
|