|
299 | 299 | 'state': '339', |
300 | 300 | }) |
301 | 301 | # --- |
302 | | -# name: test_all_entities[sensor.total_active_installations-entry] |
303 | | - EntityRegistryEntrySnapshot({ |
304 | | - 'aliases': set({ |
305 | | - }), |
306 | | - 'area_id': None, |
307 | | - 'capabilities': dict({ |
308 | | - 'state_class': <SensorStateClass.TOTAL: 'total'>, |
309 | | - }), |
310 | | - 'config_entry_id': <ANY>, |
311 | | - 'device_class': None, |
312 | | - 'device_id': <ANY>, |
313 | | - 'disabled_by': None, |
314 | | - 'domain': 'sensor', |
315 | | - 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, |
316 | | - 'entity_id': 'sensor.total_active_installations', |
317 | | - 'has_entity_name': True, |
318 | | - 'hidden_by': None, |
319 | | - 'icon': None, |
320 | | - 'id': <ANY>, |
321 | | - 'labels': set({ |
322 | | - }), |
323 | | - 'name': None, |
324 | | - 'options': dict({ |
325 | | - }), |
326 | | - 'original_device_class': None, |
327 | | - 'original_icon': None, |
328 | | - 'original_name': 'Total active installations', |
329 | | - 'platform': 'analytics_insights', |
330 | | - 'previous_unique_id': None, |
331 | | - 'supported_features': 0, |
332 | | - 'translation_key': 'total_active_installations', |
333 | | - 'unique_id': 'total_active_installations', |
334 | | - 'unit_of_measurement': 'active installations', |
335 | | - }) |
336 | | -# --- |
337 | | -# name: test_all_entities[sensor.total_active_installations-state] |
338 | | - StateSnapshot({ |
339 | | - 'attributes': ReadOnlyDict({ |
340 | | - 'friendly_name': 'Homeassistant Analytics Total active installations', |
341 | | - 'state_class': <SensorStateClass.TOTAL: 'total'>, |
342 | | - 'unit_of_measurement': 'active installations', |
343 | | - }), |
344 | | - 'context': <ANY>, |
345 | | - 'entity_id': 'sensor.total_active_installations', |
346 | | - 'last_changed': <ANY>, |
347 | | - 'last_reported': <ANY>, |
348 | | - 'last_updated': <ANY>, |
349 | | - 'state': '310400', |
350 | | - }) |
351 | | -# --- |
352 | | -# name: test_all_entities[sensor.total_reports_integrations-entry] |
353 | | - EntityRegistryEntrySnapshot({ |
354 | | - 'aliases': set({ |
355 | | - }), |
356 | | - 'area_id': None, |
357 | | - 'capabilities': dict({ |
358 | | - 'state_class': <SensorStateClass.TOTAL: 'total'>, |
359 | | - }), |
360 | | - 'config_entry_id': <ANY>, |
361 | | - 'device_class': None, |
362 | | - 'device_id': <ANY>, |
363 | | - 'disabled_by': None, |
364 | | - 'domain': 'sensor', |
365 | | - 'entity_category': <EntityCategory.DIAGNOSTIC: 'diagnostic'>, |
366 | | - 'entity_id': 'sensor.total_reports_integrations', |
367 | | - 'has_entity_name': True, |
368 | | - 'hidden_by': None, |
369 | | - 'icon': None, |
370 | | - 'id': <ANY>, |
371 | | - 'labels': set({ |
372 | | - }), |
373 | | - 'name': None, |
374 | | - 'options': dict({ |
375 | | - }), |
376 | | - 'original_device_class': None, |
377 | | - 'original_icon': None, |
378 | | - 'original_name': 'Total reported integrations', |
379 | | - 'platform': 'analytics_insights', |
380 | | - 'previous_unique_id': None, |
381 | | - 'supported_features': 0, |
382 | | - 'translation_key': 'total_reports_integrations', |
383 | | - 'unique_id': 'total_reports_integrations', |
384 | | - 'unit_of_measurement': 'active installations', |
385 | | - }) |
386 | | -# --- |
387 | | -# name: test_all_entities[sensor.total_reports_integrations-state] |
388 | | - StateSnapshot({ |
389 | | - 'attributes': ReadOnlyDict({ |
390 | | - 'friendly_name': 'Homeassistant Analytics Total reported integrations', |
391 | | - 'state_class': <SensorStateClass.TOTAL: 'total'>, |
392 | | - 'unit_of_measurement': 'active installations', |
393 | | - }), |
394 | | - 'context': <ANY>, |
395 | | - 'entity_id': 'sensor.total_reports_integrations', |
396 | | - 'last_changed': <ANY>, |
397 | | - 'last_reported': <ANY>, |
398 | | - 'last_updated': <ANY>, |
399 | | - 'state': '249256', |
400 | | - }) |
401 | | -# --- |
0 commit comments